package com.wonders.framework.auto.builder.code.entity.vo;

import com.wonders.framework.entity.vo.BaseVo;

/**
 * 列信息
 * 
 * @author WuBin
 * 
 */
public class ColumnInfo extends BaseVo {

	/**
	 * 列名
	 */
	private String columnName;

	/**
	 * 数据类型
	 */
	private String dataType;

	/**
	 * 数据精度
	 */
	private Integer dataPrecision;

	/**
	 * 小数位数
	 */
	private Integer dataScale;

	/**
	 * 数据长度
	 */
	private Integer dataLength;

	/**
	 * 是否可为空
	 */
	private String nullable;

	/**
	 * 注释
	 */
	private String comments;

	/**
	 * 键类型
	 */
	private String constraintType;

	public String getColumnName() {
		return columnName;
	}

	public String getDataType() {
		return dataType;
	}

	public Integer getDataPrecision() {
		return dataPrecision;
	}

	public Integer getDataScale() {
		return dataScale;
	}

	public Integer getDataLength() {
		return dataLength;
	}

	public String getNullable() {
		return nullable;
	}

	public String getComments() {
		return comments;
	}

	public String getConstraintType() {
		return constraintType;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public void setDataPrecision(Integer dataPrecision) {
		this.dataPrecision = dataPrecision;
	}

	public void setDataScale(Integer dataScale) {
		this.dataScale = dataScale;
	}

	public void setDataLength(Integer dataLength) {
		this.dataLength = dataLength;
	}

	public void setNullable(String nullable) {
		this.nullable = nullable;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public void setConstraintType(String constraintType) {
		this.constraintType = constraintType;
	}

	@Override
	public String toString() {
		return "ColumnInfo [columnName=" + columnName + ", comments="
				+ comments + ", constraintType=" + constraintType
				+ ", dataLength=" + dataLength + ", dataPrecision="
				+ dataPrecision + ", dataScale=" + dataScale + ", dataType="
				+ dataType + ", nullable=" + nullable + "]";
	}

}
